package com.abchina.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 陈睿 on 2015/12/24.
 */
@RestController
@RequestMapping("/hello")
public class HelloWorldController {
    @RequestMapping(value ="/world", method = RequestMethod.GET)
    @ResponseBody
    public String hello(){
        return "hello world";
    }
}
